This call returns either the target value if there is an ongoing animation,
or the current value if there is no animation.
return adjustment->priv->value;
}
+gdouble
+gtk_adjustment_get_target_value (GtkAdjustment *adjustment)
+{
+ g_return_val_if_fail (GTK_IS_ADJUSTMENT (adjustment), 0.0);
+
+ if (adjustment->priv->tick_id)
+ return adjustment->priv->target;
+ else
+ return adjustment->priv->value;
+}
+
static void
adjustment_set_value (GtkAdjustment *adjustment,
gdouble value)
guint duration);
void gtk_adjustment_animate_to_value (GtkAdjustment *adjustment,
gdouble value);
+gdouble gtk_adjustment_get_target_value (GtkAdjustment *adjustment);
G_END_DECLS